import request from '@/utils/request'

export function CaseSelectList(selectCode) {
  return request({
    url: '/wzj/select/list',
    method: 'get',
    params: { selectCode }
  })
}

export function CaseList(data) {
  return request({
    url: '/wzj/case/list',
    method: 'post',
    data
  })
}

export function CaseDetail(caseId) {
  return request({
    url: '/wzj/case/get',
    method: 'get',
    params: { caseId }
  })
}

export function CreateCase(data) {
  return request({
    url: '/wzj/case/create',
    method: 'post',
    data
  })
}

export function CreateCaseTask(data) {
  return request({
    url: '/wzj/case/task/create',
    method: 'post',
    data
  })
}

export function CaseTaskList(query) {
  return request({
    url: '/wzj/case/task/list',
    method: 'post',
    params: query
  })
}

export function GetCaseTaskInfo(taskId) {
  return request({
    url: '/wzj/case/task/get',
    method: 'get',
    params: { taskId }
  })
}

export function CreateCaseCost(data) {
  return request({
    url: '/wzj/case/cost/create',
    method: 'post',
    data
  })
}

export function CaseCostList(query) {
  return request({
    url: '/wzj/case/cost/list',
    method: 'post',
    params: query
  })
}

export function CreateCaseDoc(data) {
  return request({
    url: '/wzj/case/doc/create',
    method: 'post',
    data
  })
}

export function CaseDocList(query) {
  return request({
    url: '/wzj/case/doc/list',
    method: 'post',
    params: query
  })
}

export function CreateCaseLog(data) {
  return request({
    url: '/wzj/case/log/create',
    method: 'post',
    data
  })
}

export function CaseLogList(query) {
  return request({
    url: '/wzj/case/log/list',
    method: 'post',
    params: query
  })
}

export function CreateCaseSchedule(data) {
  return request({
    url: '/wzj/case/schedule/create',
    method: 'post',
    data
  })
}

export function CaseScheduleList(query) {
  return request({
    url: '/wzj/case/schedule/list',
    method: 'post',
    params: query
  })
}
